Digital drainage system